home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
Q-R
/
Recognize.94.cpt
/
Recognize .94
/
background_2792.txt
< prev
next >
Wrap
Text File
|
1988-11-13
|
2KB
|
99 lines
-- background: 2792 from stack: in.94
-- bmap block id: 3105
-- flags: 0000
-- background id: 0
-- name:
----- HyperTalk script -----
on idle
global toreceive
if toreceive is true then
put empty into thestring
if charsavailable() <> 0 then put empty into bkgnd field infield
repeat while charsavailable() <> 0
set cursor to busy
put "Receiving Data"
put recvupto(return,"","") into newIn
put newIn after theString
end repeat
if thestring <> empty then
put empty into bkgnd field infield
put theString after bkgnd field "inField"
put empty into thestring
if bkgnd field Infield contains "Message from" then ohbulletin
if bkgnd field infield contains "sent you mail" then justsent
send docardsearch to card
hide msg
end if
end if
end idle
on ohbulletin
hide msg
find string "Message from" in bkgnd field "Infield"
put the foundline into theline
put word 2 of theline into startline
put line startline of bkgnd field infield into thebulletin
put word 2 of theline into linenumber
add 1 to linenumber
if line linenumber of bkgnd field infield is not empty then
put return after thebulletin
put line linenumber of bkgnd field infield after thebulletin
put return after thebulletin
end if
endbulletin thebulletin
end ohbulletin
on endbulletin bulletin
put return before bulletin
put return after bulletin
put bulletin into card field "Bulletins"
put return&"Click mouse to continue" after card field bulletins
show card field "Bulletins"
wait until the mouse is down
sendsport 1,false, return
hide card field "Bulletins"
end endbulletin
on test
if bkgnd field infield contains whole "Message From" then
put yes into msg
end if
end test
on thebuttons
repeat with i = 2 to 14
set the autohilite of bkgnd button i to false
end repeat
end thebuttons
-- part 1 (field)
-- low flags: 01
-- high flags: 2004
-- rect: left=21 top=15 right=52 bottom=490
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 20
-- style flags: 0
-- line height: 26
-- part name: Menu
-- part 3 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=0 top=41 right=334 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: infield